package com.app.Activity;


import it.unipr.ce.dsg.s2p.sip.Address;

import com.app.Controller.NetworkController;

import android.app.Activity;
import android.app.NotificationManager;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import app.com.ModuleRole.R;

public class frmNotificationMoiVaoNhom extends Activity {
	Button btnDongY;
	Button btnTuChoi;
	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.layout_moi_vao_nhom);
	       
	        btnDongY=(Button)findViewById(R.id.btnDongY);
	        btnTuChoi=(Button)findViewById(R.id.btnTuChoi);
	        
	        btnDongY.setOnClickListener(new OnClickListener() {
				
				@Override
				public void onClick(View v) {
					NetworkController.sendDongYVaoNhom(new Address(NetworkController._peer.getAddressPeer()));
					finish();					
				}
			});
	        
	        NotificationManager mn=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
	        mn.cancel(getIntent().getExtras().getInt("ID"));
	 }
}
